{% extends "base.html" %}
{% block ref %}
    <link rel="stylesheet" charset="utf-8" href="/admin/style/setting-blog.css">
    <link rel="stylesheet" type="text/css" href="/admin/style/uploadify.css" />
    <script type="text/javascript" charset="utf-8" src="/editor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/editor/editor_all.js"></script>
    <script type="text/javascript" charset="utf-8" src="/admin/script/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/admin/script/jquery.uploadify.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/admin/script/timezone.js"></script>
    <script>
    </script>
{% endblock %}

{% block content %}
<div id="content">
<div id="main">
<div class="blog-profile">
<div class="head">
    <h1>导入导出</h1>
</div>
<div class="con">
<form action="" method="post" id="profile-form">
<ul class="list clearfix">
<li class="clearfix li normal">
    <div class="item-title">从WordPress导入日志：</div>
    <div class="item">
        <input type="file" name="file-upload" id="file-upload" />
        <script type="text/javascript">
            $(function() {
                $("#file-upload").uploadify({
                    'swf': '/admin/script/uploadify.swf',
                    'uploader' : '/admin/upload-xml/',
                    'fileObjName' : 'data',
                    'onUploadSuccess' : function(file, data, response) {
                        alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
                    },
                    'onSelect' : function(file) {
                        $('#file-upload').uploadify('upload','*');
                    }
                });
            });
        </script>
    </div>
</li>
</ul>
</form>
<div class="clearfix panel">
    <div class="clearfix submit-ct">
        <div id="profile-submit">
            <div onclick="submit()" cloud="" id="ctrlbuttonprofile-submit" class="ui-button skin-button-willblue" style="width: 80px; ">
                <span class="ui-button-bg-left skin-button-willblue-bg-left"></span>
                <div id="ctrlbuttonprofile-submitlabel" class="ui-button-label skin-button-willblue-label">
                    <span id="ctrlbuttonprofile-submittext" class="ui-button-text skin-button-willblue-text">保存</span>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>
{% include 'region-sidebar.html' %}
</div>
{% endblock %}